package top.jiangqiang.qianyi.common.auth.service;

import org.jetbrains.annotations.NotNull;
import top.jiangqiang.qianyi.common.auth.model.UserDetails;
import top.jiangqiang.qianyi.common.constants.auth.Platform;

/**
 * @Date 2024/6/4 上午11:04
 * @Author Jiangqiang
 */
public interface UserDetailService {
    /**
     * 查询后台用户
     *
     * @param userId 后台账号表的ID
     * @param platform 登录的平台
     * @return
     */
    default UserDetails getUserDetails(@NotNull Long userId, Platform platform) {
        UserDetails userDetails = new UserDetails();
        userDetails.setPlatform(platform);
        return userDetails;
    }

}
